package edu.zut.cs.software.module.goodsShelf.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import edu.zut.cs.software.teach.Base.domain.BaseEntity;

@Entity
@Table(name = "T_GoodsShelve")
public class GoodsShelf extends BaseEntity<Long> {

	private static final long serialVersionUID = -2411978175041541798L;

	/*
	 * The type of the GoodsShelf
	 */
	@Column
	String name;

	/*
	 * The number of GoodsShelf
	 */

	@Column
	String number;
	/**
	 * Many goodsshelf objects relate to one category of goodsshel.
	 */
	@ManyToOne
	@JoinColumn(name = "T_GoodsCategory_ID")
	GoodsCategory goodsCategory;
	
	public GoodsCategory getGoodsCategory() {
		return goodsCategory;
	}

	public void setGoodsCategory(GoodsCategory goodsCategory) {
		this.goodsCategory =goodsCategory;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}


	
}
